package com.baichang.taoshunda.entity.em;

public enum PushType {

    消息("message"), 自提订单("selfOrder"), 订单("order");

    private String code;

    private PushType(String code) {
        this.code = code;
    }

    public static PushType valueOfCode(Integer code) {
        PushType[] states = PushType.values();
        for (PushType state : states) {
            if (state.getCode().equals(code)) {
                return state;
            }
        }
        return null;
    }

    public String getCode() {
        return this.code;
    }

    @Override
    public String toString() {
        return String.valueOf(this.code);
    }

}
